import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

//vue-resource停止更新了,用回axios.
import vueAxios  from 'vue-axios'
import axios from 'axios'
Vue.use(vueAxios,axios)

//图片懒加载
import VueLazyload from 'vue-lazyload'
Vue.use(VueLazyload)
Vue.use(VueLazyload, {
  preLoad: 1.3,
  // error: require('./static/loading.gif'),
  // loading: require('./static/loading.gif'),
  attempt: 1
})

//图片点击大图插件
import preview from 'vue-photo-preview'
import 'vue-photo-preview/dist/skin.css'
Vue.use(preview)


Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

